package com.ppmall.dao;

import com.ppmall.pojo.Advert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface AdvertMapper{
    List<Advert> getAllAdverts();

    Advert getAdvertById(@Param("id") Integer id);

    Integer updateAdvertById(Advert advert);

    Integer deleteAdvertById(@Param("id") Integer id);

    Integer addAdvert(Advert advert);

    Integer deleteAllAdverts();

    List selectBySelective(Advert advert);
}